            <!-- Begin: Wrapper Header -->
            <div class="header hidden">
<? Shell::showWidgets('wrapper-header') ?>
            </div> <!-- End -->
            
            <!-- Begin: Sidebar Left -->
            <div class="sidebar left">
<? Shell::showWidgets('sidebar-left') ?>                
            </div> <!-- End -->
            
            <!-- Begin: Content Enterprise Vehicles -->
            <div class="content enterprise-vehicles">
                <div class="banners-lateral">
                    <span>Publicidade</span>
                    <ul>
<?
if (isset(LayoutPage::$banners['lateral2'])):
    $banners = LayoutPage::$banners['lateral2'];
    foreach ($banners as $banner):
        if ($banner == null):
?>
                        <li>
                            <a href="javascript:;">
                                <img src="<?= _BNN_IMG_ ?>lateral2.jpg" alt="Banner" />
                            </a>
                        </li>
<?
        else:
?>
                        <li>
<?
            if (strtolower(pathinfo($banner->filepicture, PATHINFO_EXTENSION)) == 'jpg'):
                if (!$banner->id_enterprise):
?>
                            <a href="<?= $banner->href ?>" target="<?= $banner->target ?>">
<? else: ?>
                            <a href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>">
<? endif ?>
                                <img src="<?= _BNN_IMG_.$banner->filepicture ?>" alt="Banner" />
                            </a>
<? else: ?>
                            <object width="120" height="60">
                                <param name="src" value="<?= _BNN_IMG_.$banner->filepicture ?>">
                                <param name="wmode" value="opaque">
                                <embed src="<?= _BNN_IMG_.$banner->filepicture ?>" width="120" height="60"></embed>
                            </object>
<? if (!$banner->id_enterprise): ?>
                            <a class="flash" href="<?= $banner->href ?>" target="<?= $banner->target ?>"></a>
<? else: ?>
                            <a class="flash" href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>"></a>
<?
                endif;
            endif;
?>
                        </li>
<?
        endif;
    endforeach;
endif
?>
                    </ul>
                </div>
                <div class="info">
<? if (EnterpriseVehicles::$enterprise->filepicture != null): ?>
                    <img src="<?= _ETP_IMG_.'normal/'.EnterpriseVehicles::$enterprise->filepicture ?>" />
<? else: ?>
                    <img src="<?= _ETP_IMG_ ?>normal/no-image.jpg" />
<? endif ?>
                    <h2><?= EnterpriseVehicles::$enterprise->fancyname ?></h2>
                    <p>
                        <strong>Endereço</strong>: <?= EnterpriseVehicles::$enterprise->address ?>, <?= EnterpriseVehicles::$enterprise->number ?><br/>
                        <strong>Bairro</strong>: <?= EnterpriseVehicles::$enterprise->district ?><br/>
                        <strong>Cidade</strong>: <?= EnterpriseVehicles::$enterprise->ct_name ?> - <?= EnterpriseVehicles::$enterprise->st_symbol ?><br/>
                        <strong>CEP</strong>: <?= Util::format_cep(EnterpriseVehicles::$enterprise->cep) ?><br/>
                        <strong>Contatos</strong>: <?= EnterpriseVehicles::$enterprise->contacts ?>
                    </p>
                    <div class="phones">
<? foreach (EnterpriseVehicles::$phones as $phone): ?>
                        <p><?= Util::format_phone($phone->areacode.$phone->number) ?></p>
<? endforeach ?>
                    </div>
                </div>
                <div class="pagination">
<? if (!empty(EnterpriseVehicles::$data)): ?>
                    <ul>
<?
    $n = 0;
    foreach (EnterpriseVehicles::$data as $vehicle):
        if ($n++ == 3):
            if (isset(LayoutPage::$banners['search'])):
                $banner = LayoutPage::$banners['search'];
                if ($banner == null):
?>
                    <a class="banner" href="javascript:;" target="Banner">
                        <img src="<?= _BNN_IMG_ ?>search.jpg" alt="Banner" />
                    </a>
<?
                else:
                    if (strtolower(pathinfo($banner->filepicture, PATHINFO_EXTENSION)) == 'jpg'):
                        if (!$banner->id_enterprise):
?>
                    <a class="banner" href="<?= $banner->href ?>" target="<?= $banner->target ?>">
<? else: ?>
                    <a class="banner" href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>">
<? endif ?>
                        <img src="<?= _BNN_IMG_.$banner->filepicture ?>" alt="Banner" />
                    </a>
<? else: ?>
                    <object class="banner" width="627" height="100">
                        <param name="src" value="<?= _BNN_IMG_.$banner->filepicture ?>">
                        <param name="wmode" value="opaque">
                        <embed src="<?= _BNN_IMG_.$banner->filepicture ?>" width="627" height="100"></embed>
                    </object>
<? if (!$banner->id_enterprise): ?>
                    <a class="flash" href="<?= $banner->href ?>" target="<?= $banner->target ?>"></a>
<? else: ?>
                    <a class="flash" href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>"></a>
<?
                        endif;
                    endif;
                endif;
            endif;
        endif
?>
                        <li>
                            <h1>
                                <span>Cód: <?= str_pad($vehicle->v_id, 6, 0, 0) ?></span>
                                <a href="<?= __BASE_URI__.urlencode(strtolower($vehicle->t_name)).'/'.urlencode(strtolower($vehicle->m_name)).'/'.urlencode(strtolower($vehicle->b_name)).'/'.$vehicle->firstreg.'/'.$vehicle->v_id ?>">
                                    
                                    <?= $vehicle->m_name.' '.$vehicle->c_name.' '.$vehicle->version.' '.$vehicle->firstreg ?>
                                </a>
                            </h1>
                            <div>
                                <a href="<?= __BASE_URI__.urlencode(strtolower($vehicle->t_name)).'/'.urlencode(strtolower($vehicle->m_name)).'/'.urlencode(strtolower($vehicle->b_name)).'/'.$vehicle->firstreg.'/'.$vehicle->v_id ?>">
                                    <img class="thumb" src="<?= _VHC_IMG_ ?>search/<?= $vehicle->vtop_filename ?>" alt="" />
                                </a>
                                <p>
                                    <?= $vehicle->t_name.' - '.$vehicle->m_name.' '.$vehicle->engine ?><br/>
                                    <?= $vehicle->c_name.' - '.$vehicle->firstreg.'/'.$vehicle->modelyear.' - '.$vehicle->f_name ?><br/>
                                    <?= $vehicle->ctoc_name.$vehicle->ctoe_name.'/'.$vehicle->stoc_name.$vehicle->stoe_name ?>
                                </p>
                                <img class="private" src="<?= _ETP_IMG_ ?>logo/<?= empty($vehicle->filebrand) ? 'no-image.jpg' : $vehicle->filebrand ?>" />
                                <span class="price">
                                    <span>R$</span> <?= Util::format_money((int)$vehicle->price, 0) ?><span><?= ltrim(Util::format_money($vehicle->v_price - (int)$vehicle->v_price), '0') ?></span>
                                </span>
                            </div>
                        </li>
<? endforeach ?>
                    </ul>
<? else: ?>
                    <p class="notfound">Nenhum veículo foi encontrado</p>
<? endif ?>
                </div>
                <div class="pages-menu">
                    <?= EnterpriseVehicles::$pagination->html ?>
                </div>
            </div>
         </div> <!-- End -->
